import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";

import MessageListEntity from "../../../entities/HomePage/MessageListEntity";
export type IMessageList = Omit<MessageListEntity, "validateThis">;

const MessageListModel = sequelize.define<any, IMessageList>(
  "message_list",
  {
    type: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    title: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    content: {
      type: DataTypes.TEXT,
      allowNull: true,
    },
  },
  option
);
export default MessageListModel;
